package com.ftx.controller.test.annotation.autowire;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.inject.Inject;

/**
 * Created by fengtingxin on 2020/4/22.
 */
@Service
public class BookService {

//    @Qualifier(value = "bookDao2")
//    @Autowired(required = false)

//    @Resource(name = "bookDao2")
    @Inject
    private BookDao bookDao;


    @Override
    public String toString() {
        return "BookService{" +
                "bookDao=" + bookDao +
                '}';
    }
}
